package cn.mldn.action;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import cn.mldn.remoteapi.IMessage;

@RequestMapping("/msges")
@Controller 
public class MessageAction {
	@Resource
	private IMessage message;
	@RequestMapping("/echo.action")
	public ModelAndView echo(String msg) {
		ModelAndView mav = new ModelAndView("messages/show") ;
		mav.addObject("info", this.message.echo(msg)) ;
		return mav ; 
	}
}
